package com.cxm.qyyz.base.mvp;


import com.trello.rxlifecycle4.LifecycleTransformer;

public interface BaseContract {

    interface BaseView {

        void toast(String message);

        void toast(int resId);

        void onData();

        void onLoad();

        void onError();

        void onReload();

        void jumpToLogin();

        void onShow();

        void onDismiss();

        <T> LifecycleTransformer<T> bindToLife();
    }

    interface BasePresenter<V extends BaseView> {

        void attachView(V view);

        void detachView();
    }
}
